package com.qys.livesMall.anchor.model.vo.lives.app;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jetbrains.annotations.NotNull;

@Data
public class LikeListVO implements Comparable<LikeListVO>{

    /**
     * 点主播id
     */
    @Schema(description = "点赞主播id")
    private Long anchorId;

    /**
     * 主播直播间房间号
     */
    @Schema(description = "主播直播间房间号")
    private String livesRoomNum;

    /**
     * 主播名
     */
    @Schema(description = "主播名")
    private String anchorName;

    /**
     * 主播头像
     */
    @Schema(description = "主播头像")
    private String anchorAvatar;

    /**
     * 一小时点赞量
     */
    @Schema(description = "一小时点赞量")
    private Integer oneHoursLikeNum;


    @Override
    public int compareTo(@NotNull LikeListVO o) {
        return o.getOneHoursLikeNum().compareTo(this.getOneHoursLikeNum());
    }
}
